// 用于有搜索框和scroll-view标签的内容区域
export const searchContentHeight =   {
	data () {
		return {
			capsuleTop:0,
			capsuleHeight:0,
			contentHeight:0
		}
	},
	created () {
		const wxWindowHeight = uni.getSystemInfoSync().windowHeight
		const capsule = uni.getMenuButtonBoundingClientRect()
		this.capsuleTop = capsule.top
		this.capsuleHeight = capsule.height
		this.contentHeight = wxWindowHeight - this.capsuleTop - this.capsuleHeight - 10
	}
}
// 返回胶囊的高度的和距离顶部距离
export const capsuleTopHeight =   {
	data () {
		return {
			capsuleTop: 0,
			capsuleHeight: 0
		}
	},
	created () {
		const capsule = uni.getMenuButtonBoundingClientRect()
		this.capsuleTop = capsule.top
		this.capsuleHeight = capsule.height
	},
	methods:{
		returnHandle(deltaNmuber){
			uni.navigateBack({
			  delta: deltaNmuber
			})
		}
	}
}